package com.bootdo.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.system.dao.CameraDao;
import com.bootdo.system.domain.CameraDO;
import com.bootdo.system.service.CameraService;



@Service
public class CameraServiceImpl implements CameraService {
	@Autowired
	private CameraDao cameraDao;
	
	@Override
	public CameraDO get(Integer cameraId){
		return cameraDao.get(cameraId);
	}
	
	@Override
	public List<CameraDO> list(Map<String, Object> map){
		return cameraDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return cameraDao.count(map);
	}
	
	@Override
	public int save(CameraDO camera){
		return cameraDao.save(camera);
	}
	
	@Override
	public int update(CameraDO camera){
		return cameraDao.update(camera);
	}
	
	@Override
	public int remove(Integer cameraId){
		return cameraDao.remove(cameraId);
	}
	
	@Override
	public int batchRemove(Integer[] cameraIds){
		return cameraDao.batchRemove(cameraIds);
	}
	
}
